var userInfoModule = angular.module('UserInfoModule', []);

userInfoModule.controller('UserInfoCtrl', ['$scope', function($scope) {
    $scope.userInfo = {
        email: "oajlsjdfa@qq.com",
        password: "oaidjflksajdf",
        autoLogin: true
    }
    $scope.getFormData = function() {
        console.log($scope.userInfo);
    }
    $scope.setFormData = function() {
        $scope.userInfo = {
            email: "123917239123@qq.com",
            password: "13123123123",
            autoLogin: false
        }
    }
    $scope.resetForm = function() {
        $scope.userInfo = {
            email: "oajlsjdfa@qq.com",
            password: "oaidjflksajdf",
            autoLogin: true
        }
    }
}]);
